﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FurnitureSystem
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
 

        private void MainTreeMenu_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            TreeNode node = MainTreeMenu.SelectedNode;

            if (node.Name.Equals("quanlySP"))
            {
                frmQuanLySP frmQuanLySP = new frmQuanLySP();
                frmQuanLySP.MdiParent = this;
                gbMain.Controls.Add(frmQuanLySP);
                frmQuanLySP.Show();

            }
            else if (node.Name.Equals("quanlyLoaiSP"))
            {
                frmQuanLyLoaiSP frmCapNhatLoaiSP = new frmQuanLyLoaiSP();
                frmCapNhatLoaiSP.MdiParent = this;
                gbMain.Controls.Add(frmCapNhatLoaiSP);
                frmCapNhatLoaiSP.Show();
            }
        }
        
    }
}
